package com.ruoyi.web.controller.report;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.BloodTwoDimensional;
import com.ruoyi.system.service.BloodTwoDimensionalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


/**
 * 血缘关系 二维表
 */

@RestController
@RequestMapping("/report/blood")
public class ReportBloodTwoDimensional extends BaseController {

    @Resource
    private BloodTwoDimensionalService bloodTwoDimensionalService;

    @GetMapping("/list")
    public TableDataInfo list() {
        System.out.println("接口测试");

        List<BloodTwoDimensional> bloodTwoDimensionalList = bloodTwoDimensionalService.getBloodTwoDimensionalList();
        logger.info(bloodTwoDimensionalList.toString());
        return getDataTable(bloodTwoDimensionalList);
    }


}
